Servebolt\Optimizer\CachePurge\WpObjectCachePurgeActions\ContentChangeTrigger A

Total Complexity 60
Dependencies 4
Dependents 2
Total lines 420
Lines of code 184
Logical lines of code 109
Comment lines 174
Methods 17
Properties 0

Methods 17

Method Rating Maintainability Complexity Lines of code
registerEvents()
A
48 11 32
purgeCategoryTermsOnFirstSave()
A
57 11 14
shouldPurgePostCache()
S
54 6 22
purgePostOnCommentPost()
S
57 4 20
shouldPurgeTermCache()
S
57 4 19
purgePostOnCommentApproval()
S
64 4 10
maybePurgeTerm()
S
65 3 9
maybePurgePost()
S
65 3 9
purgePostOnCommentUnTrashed()
S
72 2 5
purgePostOnCommentTrashed()
S
72 2 5
purgePostOnCommentSetAsSpam()
S
72 2 5
shouldPurgePostTypeCache()
S
68 2 7
getPostIdFromComment()
S
69 2 7
deregisterEvents()
S
62 1 10
purgePostOnPublishedCommentEdited()
S
76 1 4
purgeTermOnSave()
S
79 1 3
purgePostOnSave()
S
80 1 3